import request from "@/utils/request";
import { loginType, getListType } from "../interface";

// 登录请求
export const apiLogin = (data:loginType) => {
  return request({
    url: "/api/login",
    method: "post",
    data,
  });
};

// 获取列表
export const apiGetList = (data:getListType) => {
    return request({
        url: '/api/getList',
        method: 'post',
        data
    })
}
